package com.more.offer.designpatterns.singleton.lazyinitialization;

/**
 * @author pinoc
 * @date 2021/10/22
 * @description 不使用同步的线程安全方式的单例
 * 推荐此方式
 */
public class ThreadSafeSingletonWithBillPush {

	private ThreadSafeSingletonWithBillPush(){}

	private static class SingletonHelper{
		private static final ThreadSafeSingletonWithBillPush INSTANCE = new ThreadSafeSingletonWithBillPush();
	}

	public static ThreadSafeSingletonWithBillPush getInstance() {
		return SingletonHelper.INSTANCE;
	}
}
